package twoD.Csg.delaunay;

import java.util.HashSet;
import java.util.Set;

public class BoundaryCollector {

	private HashSet<Edge> edges = new HashSet<Edge>();

	public void addEdge(Edge e) {
		if (this.edges.contains(e)) {
			this.edges.remove(e);
		} else {
			this.edges.add(e);
		}
	}

	public void addEdges(Edge[] es) {
		for (Edge e : es) {
			addEdge(e);
		}
	}

	public Set<Edge> getBoundaryEdges() {
		return this.edges;
	}
	
}
